<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page isELIgnored="false"%>
<!DOCTYPE html>
<%
	String path = request.getContextPath();
%>
<html>
<head>

<link rel="stylesheet" type="text/css"
	href="<%=path%>/script/easyUI-1.4/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css"
	href="<%=path%>/script/easyUI-1.4/themes/icon.css">
<script type="text/javascript"
	src="<%=path%>/script/easyUI-1.4/jquery-3.2.1.min.js"></script>
<script type="text/javascript"
	src="<%=path%>/script/easyUI-1.4/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="<%=path%>/script/easyUI-1.4/locale/easyui-lang-zh_CN.js"></script>
<style type="text/css">
</style>
</head>
<script type="text/javascript">
	$(function() {

			
			$("#decisionBtn").click(function(){
				var x11 ="${desicionDtos[0].x1info}";
				$('#attributeWeight11').textbox('readonly',true);
				$('#attributeWeight11').textbox('setText',x11);
				
				var x12 ="${desicionDtos[1].x1info}";
				$('#attributeWeight12').textbox('readonly',true);
				$('#attributeWeight12').textbox('setText',x12);
				
				var x13 ="${desicionDtos[2].x1info}";
				$('#attributeWeight13').textbox('readonly',true);
				$('#attributeWeight13').textbox('setText',x13);
				
				var x14 ="${desicionDtos[3].x1info}";
				$('#attributeWeight14').textbox('readonly',true);
				$('#attributeWeight14').textbox('setText',x14);
				
				
				var x21 ="${desicionDtos[0].x2info}";
				$('#attributeWeight21').textbox('readonly',true);
				$('#attributeWeight21').textbox('setText',x21);
				
				var x22 ="${desicionDtos[1].x2info}";
				$('#attributeWeight22').textbox('readonly',true);
				$('#attributeWeight22').textbox('setText',x22);
				
				var x23 ="${desicionDtos[2].x2info}";
				$('#attributeWeight23').textbox('readonly',true);
				$('#attributeWeight23').textbox('setText',x23);
				
				var x24 ="${desicionDtos[3].x2info}";
				$('#attributeWeight24').textbox('readonly',true);
				$('#attributeWeight24').textbox('setText',x24);
				
				
				var x31 ="${desicionDtos[0].x3info}";
				$('#attributeWeight31').textbox('readonly',true);
				$('#attributeWeight31').textbox('setText',x21);
				
				var x32 ="${desicionDtos[1].x3info}";
				$('#attributeWeight32').textbox('readonly',true);
				$('#attributeWeight32').textbox('setText',x32);
				
				var x33 ="${desicionDtos[2].x3info}";
				$('#attributeWeight33').textbox('readonly',true);
				$('#attributeWeight33').textbox('setText',x33);
				
				var x34 ="${desicionDtos[3].x3info}";
				$('#attributeWeight34').textbox('readonly',true);
				$('#attributeWeight34').textbox('setText',x34);
				

			});
			
			$("#calSRQiBtn").bind("click",function(){
				
				var Si1 ="${siMap['x1']}";
				$('#Si1').textbox('readonly',true);
				$('#Si1').textbox('setText',Si1);
				
				var Si2 ="${siMap['x2']}";
				$('#Si2').textbox('readonly',true);
				$('#Si2').textbox('setText',Si2);
				
				var Si3 ="${siMap['x3']}";
				$('#Si3').textbox('readonly',true);
				$('#Si3').textbox('setText',Si3);

				var Ri1 ="${RiMap['x1']}";
				$('#Ri1').textbox('readonly',true);
				$('#Ri1').textbox('setText',Ri1);
				
				var Ri2 ="${RiMap['x2']}";
				$('#Ri2').textbox('readonly',true);
				$('#Ri2').textbox('setText',Ri2);
				
				var Ri3 ="${RiMap['x3']}";
				$('#Ri3').textbox('readonly',true);
				$('#Ri3').textbox('setText',Ri3);
				
				var Qi1 ="${qiMap['x1']}";
				$('#Qi1').textbox('readonly',true);
				$('#Qi1').textbox('setText',Qi1);
				
				var Qi2 ="${qiMap['x2']}";
				$('#Qi2').textbox('readonly',true);
				$('#Qi2').textbox('setText',Qi2);
				
				var Qi3 ="${qiMap['x3']}";
				$('#Qi3').textbox('readonly',true);
				$('#Qi3').textbox('setText',Qi3);
				
				
			});
			
			//查看最后的结果
		
			$("#resultBtn").bind("click",function(){
				
				$.messager.confirm('提示','方案${result}为最佳方案',function(r){    
				  location.href="<%=path%>/analyzeAction/getAnalyze";  
				});
			});
	});
</script>



<body>
	<div style="margin-left: 20%">
		<div id="expertWeight">
			<h3>Step3：利用单值中智加权平均集结算子，计算群体决策信息 <a id="decisionBtn" class="easyui-linkbutton"
						data-options="iconCls:'icon-ok'"
						style="width: 60px; height:32px; margin-left: 20px;">计算</a>	</h3>
	<table border="1">
		<tr>
			<td></td>
			<td>C1</td>
			<td>C2</td>
			<td>C3</td>
			<td>C4</td>
		</tr>
		<tr>
			<td>X1</td>
			<td><input class="easyui-textbox" id="attributeWeight11"  style="width:180px;height: 30px"></td>
			<td><input class="easyui-textbox" id="attributeWeight12"  style="width:180px;height: 30px"></td>
			<td><input class="easyui-textbox" id="attributeWeight13"  style="width:180px;height: 30px"></td>
			<td><input class="easyui-textbox" id="attributeWeight14"  style="width:180px;height: 30px"></td>
		</tr>
		<tr>
			<td>X2</td>
			<td><input class="easyui-textbox" id="attributeWeight21"  style="width:180px;height: 30px"></td>
			<td><input class="easyui-textbox" id="attributeWeight22"  style="width:180px;height: 30px"></td>
			<td><input class="easyui-textbox" id="attributeWeight23"  style="width:180px;height: 30px"></td>
			<td><input class="easyui-textbox" id="attributeWeight24"  style="width:180px;height: 30px"></td>
		</tr>
		<tr>
			<td>X3</td>
			<td><input class="easyui-textbox" id="attributeWeight31"  style="width:180px;height: 30px"></td>
			<td><input class="easyui-textbox" id="attributeWeight32"  style="width:180px;height: 30px"></td>
			<td><input class="easyui-textbox" id="attributeWeight33"  style="width:180px;height: 30px"></td>
			<td><input class="easyui-textbox" id="attributeWeight34"  style="width:180px;height: 30px"></td>
		</tr>
	</table>
			
		
		</div>
		<br><br>
		<div id="attributeWeight">
			<h3>Step4：利用群体效应值，个体遗憾值和折中评价值，Qi为	<a id="calSRQiBtn" class="easyui-linkbutton"
						data-options="iconCls:'icon-ok'"
						style="width: 60px; height:32px; margin-left: 20px;">计算</a></h3>
					<table border="1">
						<tr>
							<td></td>
							<td>Si</td>
							<td>Ri</td>
							<td>Qi</td>
						</tr>
						<tr>
							<td>X1</td>
							<td><input class="easyui-textbox" id="Si1"  style="width:60px;height: 30px"></td>
							<td><input class="easyui-textbox" id="Ri1"  style="width:60px;height: 30px"></td>
							<td><input class="easyui-textbox" id="Qi1"  style="width:60px;height: 30px"></td>
						</tr>
							<tr>
							<td>X2</td>
							<td><input class="easyui-textbox" id="Si2"  style="width:60px;height: 30px"></td>
							<td><input class="easyui-textbox" id="Ri2"  style="width:60px;height: 30px"></td>
							<td><input class="easyui-textbox" id="Qi2"  style="width:60px;height: 30px"></td>
						</tr>
							<tr>
							<td>X3</td>
							<td><input class="easyui-textbox" id="Si3"  style="width:60px;height: 30px"></td>
							<td><input class="easyui-textbox" id="Ri3"  style="width:60px;height: 30px"></td>
							<td><input class="easyui-textbox" id="Qi3"  style="width:60px;height: 30px"></td>
						</tr>
					</table>
		</div>
		<div style="margin-top: 50px;">
			<a id="resultBtn" class="easyui-linkbutton"
						data-options="iconCls:'icon-ok'"
						style="width: 120px; height:32px; margin-left: 20px;">结果</a>
		</div>
	</div>
</body>

</html>